export default function asleep(ms: number): Promise<void> {
  return new Promise((resolve) => {
    const t = setTimeout(() => {
      resolve(undefined);
      clearTimeout(t);
    }, ms);
  });
}
